package com.tianxiabuyi.model.manage;

import com.alibaba.fastjson.annotation.JSONField;
import com.tianxiabuyi.model.base.TXBYObject;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "hospital_user")
public class HospitalUser extends TXBYObject{

    private String name; // 姓名

    @Column(name = "employee_id")@JSONField(name = "employee_id")
    private String employeeId; // 工号

    @Column(name = "card_number")@JSONField(name = "card_number")
    private String cardNumber; // 身份证号

    private String phone; // 手机号

    private String wechat; // 微信号

    private String qq; // qq号

    private String email; // 邮箱

    @Column(name = "entry_time")@JSONField(name = "entry_time")
    private String entryTime; // 入职时间

    @Column(name = "work_status")@JSONField(name = "work_status")
    private Integer workStatus; // 在职状态（0离职，1在职，2退休）

    private Integer hidden; // 是否隐藏（1是，0否）

    private String password; // 密码

    @Column(name = "last_login")@JSONField(name = "last_login")
    private Long lastLogin; // 最后登录时间戳

    @Column(name = "last_ip")@JSONField(name = "last_ip")
    private String lastIp; // 最后登录ip

    private Integer gender; // 性别（1男，0女）

    private String avatar; // 头像

    @Column(name = "personal_secret")@JSONField(name = "personal_secret")
    private String personalSecret; // 个人密码

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmployeeId() {
        return employeeId;
    }

    public void setEmployeeId(String employeeId) {
        this.employeeId = employeeId;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getWechat() {
        return wechat;
    }

    public void setWechat(String wechat) {
        this.wechat = wechat;
    }

    public String getQq() {
        return qq;
    }

    public void setQq(String qq) {
        this.qq = qq;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getEntryTime() {
        return entryTime;
    }

    public void setEntryTime(String entryTime) {
        this.entryTime = entryTime;
    }

    public Integer getWorkStatus() {
        return workStatus;
    }

    public void setWorkStatus(Integer workStatus) {
        this.workStatus = workStatus;
    }

    public Integer getHidden() {
        return hidden;
    }

    public void setHidden(Integer hidden) {
        this.hidden = hidden;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Long getLastLogin() {
        return lastLogin;
    }

    public void setLastLogin(Long lastLogin) {
        this.lastLogin = lastLogin;
    }

    public String getLastIp() {
        return lastIp;
    }

    public void setLastIp(String lastIp) {
        this.lastIp = lastIp;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public String getPersonalSecret() {
        return personalSecret;
    }

    public void setPersonalSecret(String personalSecret) {
        this.personalSecret = personalSecret;
    }
}
